import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:trophy',    
      keepAlive: true,
      title: '大赛管理',
      order: 1
    },
    name: 'Competition',
    path: '/competition',
    children: [
      {
        meta: {
          title: '大赛列表',
        },
        name: 'CompetitionList',
        path: 'competitionList',
        component: () => import('#/views/competition/competition-list.vue'),
      }, 
      {
        meta: {
          title: '赛事组别',
        },
        name: 'CompetitionCtgr',
        path: 'competitionCtgr',
        component: () => import('#/views/competition/competition-ctgr.vue'),
      },
      {
        meta: {
          title: '赛道管理',
        },
        name: 'TrackMgr',
        path: 'trackMgr',
        component: () => import('#/views/competition/track-mgr.vue'),
      }, 
      {
        meta: {
          title: '团队信息',
        },
        name: 'TeamInfo',
        path: 'teamInfo',
        component: () => import('#/views/competition/team-info.vue'),
      }, 
      {
        meta: {
          title: '报名信息',
        },
        name: 'RegistrationInfo',
        path: 'registrationInfo',
        component: () => import('#/views/competition/registration-info.vue'),
      },
      {
        meta: {
          title: '资讯管理',
        },
        name: 'NewsMgr',
        path: 'newsMgr',
        component: () => import('#/views/competition/news-mgr.vue'),
      }, 
    ],
  }
];

export default routes;
